package stringmethod;

import java.util.ArrayList;
import java.util.Scanner;

/**
 * @author げっしょく
 * @date 2021/7/9
 */
public class TestStringdemo {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        list.add("你");
        list.add("是");
        list.add("傻");
        list.add("逼");
        list.add("you dont't now?");
        System.out.println(list);
    }

}



 /*  public static void checkStr(String str){
        String s2 = "";
        for (int length = str.length() - 1; length >= 0; length--) {
            char c = str.charAt(length);
            s2 += c;
        }
        if(str.equals(s2)){
            System.out.println("你输入的是对等字符串");
        }else
            System.out.println("你输入的不是对等字符串");
    }


        //char[] arr = str.toCharArray();
        //s2 = arr[1];
       // for (int i = arr.length; i >= 0; i--) {
            //s2 = arr[i];



    public static void main(String[] args) {
        String s1;
        Scanner sc = new Scanner(System.in);
        System.out.println("输入字符串：");
        s1 = sc.next();
        checkStr(s1);
    }*/